package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户im限制记录
 * </p>
 *
 * @author Shane
 * @since 2020-12-08
 */
@TableName("user_im_limit_log")
public class UserImLimitLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 消息类型，TEXT-文本消息  PICTURE-图片消息  AUDIO-语音消息  VIDEO-视频消息  CUSTOM-自定义消息
	 */
	@TableField(value = "`type`")
	private String type;

	/**
	 * 限制次数
	 */
	@TableField(value = "`num`")
	private Integer num;

	/**
	 * 
	 */
	@TableField(value="begin_time")
	private Date beginTime;

	/**
	 * 
	 */
	@TableField(value="end_time")
	private Date endTime;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserImLimitLog() {
	}

	public UserImLimitLog(Integer userId, String type, Integer num, Date beginTime, Date endTime) {
		this.userId = userId;
		this.type = type;
		this.num = num;
		this.beginTime = beginTime;
		this.endTime = endTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
